home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_bab_sectoradjoin.cog < prev    next >
Text File  |  1999-11-15  |  1KB  |  45 lines

  1. # Jones 3D Cog Script
  2. #
  3. # BAB_CourtyardCommmie2.cog
  4. # This cog is based on the brilliant groundbreaking cog work pioneered by Reed Derleth
  5. #
  6. # [SXC]
  7. #
  8. # (C) 1998 LucasArts Entertainment Co. All Rights Reserved
  9. # ========================================================================================
  10.  
  11. symbols
  12.  
  13.     message     startup
  14.     message     entered
  15.     
  16.     thing       player          local
  17.     
  18.     sector      onsector
  19.     sector      vizsector
  20.         
  21.     int         done=0          local
  22.         
  23. end
  24.  
  25. code
  26.  
  27. # ========================================================================================
  28. startup:
  29.     player = GetLocalPlayerThing();
  30.     SetSectorAdjoins(vizsector, 0);
  31.     return;
  32.  
  33. #----------------------------------------------------------------------------------------
  34. entered:
  35.     if ((GetSenderRef() == onsector) && (done == 0))
  36.     {
  37.         done = 1;
  38.         //print("turning courtyards on");
  39.         SetSectorAdjoins(vizsector, 1);
  40.     }                    
  41.     return;
  42.  
  43. #----------------------------------------------------------------------------------------
  44. end
  45.